package com.neusoft.nep.supervisor.cfg;

import com.neusoft.nep.supervisor.dao.impl.SupervisorDaoImpl;
import com.neusoft.nep.supervisor.service.impl.SupervisorServiceImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Scope;

/**
 * 解决旧的代码注入Spring容器的问题，虽然可以使用bean标签解决，但是使用JavaCfg方式是另一种解决方案
 *
 * SupervisorCfg aaa
 *
 * @author Administrator
 * @version 2024/05/24 10:40
 *
 **/
@Configuration
public class SupervisorCfg {
    @Bean
//    @Scope("prototype")
    public SupervisorDaoImpl  supervisorDao(){
        return   new SupervisorDaoImpl();
    }
}